<?php

class area{
public function index(){
$city_id = intval($GLOBALS['request']['city_id']);
$arealist=  $GLOBALS['db']->getAll('SELECT id as trad_id,city_id,name FROM '.DB_PREFIX."area WHERE pid=0 and city_id='{$city_id}' ");
$root=array();
$root['item']=$arealist;
output($root);
}
}

?>